//
//  SYView.m
//  10-CustomCell-易车
//
//  Created by dllo on 16/7/28.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#import "SYView.h"

@implementation SYView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageButton = [UIButton buttonWithType:UIButtonTypeSystem];
        _imageButton.frame = CGRectMake(10, 10, 60, 60);
                _imageButton.backgroundColor = [UIColor redColor];
        [self addSubview:_imageButton];
        
        _bottomLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 70, 90, 30)];
       
//        _bottomLabel.numberOfLines = 3;
        _bottomLabel.textAlignment = 1;
        _bottomLabel.font = [UIFont systemFontOfSize:15];
        //        _bottomLabel.backgroundColor = [UIColor blueColor];
        [self addSubview:_bottomLabel];
    }
    return self;
}

- (void)setWithButtonImage:(NSString *)buttonImage bottomLabelText:(NSString *)bottomLabelText
{
    
    [_imageButton setImage:[[UIImage imageNamed:buttonImage] imageWithRenderingMode:1]forState:UIControlStateNormal];
    
    _bottomLabel.text = bottomLabelText;
    
}


@end
